package 抽象工厂;

public class WaterFactory extends AbstractFactory {
    @Override
    public YiBao getYiBao() {
        //设置为1升
        this.volume=1;
        return new YiBao();
    }

    @Override
    public IceDew getIecDew() {
        //设置为2升
        return new IceDew();
    }

    @Override
    public NongFu getNongFu() {
        //设置为3升
        return new NongFu();
    }

}
